package com.zy.modules.sys.repo;

import com.zy.modules.sys.entity.SysUserRoleEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * <p></p>
 * Created by zhezhiyong@163.com on 2017/7/25.
 */
public interface UserRoleRepository extends PagingAndSortingRepository<SysUserRoleEntity, Long>, JpaSpecificationExecutor<SysUserRoleEntity> {
    List<Long> findByUserId(Long userId);

    void deleteByUserId(Long userId);
}
